package sbc.group1.lab1.mozartspaces;

import org.mozartspaces.core.ContainerReference;

import sbc.group1.lab1.common.Wheel;


public class WheelProducer extends AbstractProducer {

    public WheelProducer(int id, int partsToProduce, Space space, 
            double relativeDefects) {
        super(id, partsToProduce, space, relativeDefects);
    }

    @Override
    protected Wheel createInstance() {
        return new Wheel(this, randomIsDefect());
    }

    @Override
    protected ContainerReference getContainer() {
        return getSpace().getWheelContainer();
    }

}
